package org.celery.modules.order.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderStatusPayEnum {
    PENDING("未付款", 0),

    PAID("已付款", 1),
    ;
    private String name;
    private int status;

    public static String getName(int status) {
        if (status == PENDING.getStatus()) {
            return PENDING.getName();
        } else if (status == PAID.getStatus()) {
            return PAID.getName();
        } else {
            return "";
        }
    }

}
